<% form_tag batch_deal_admin_users_path, :method => :post do -%>
<table width="60%" border="0">
<% for user in users%>
    <tr>
      <td align="left" valign="middle">
      <%= user.login %>
      </td>
      <td align="right">
      <%= link_to "编辑", edit_admin_user_path(user) %>
      </td>

      <td>
      <%= check_box("to_be_deal", user.id, {}, "yes", "no") %>
      </td>
    </tr>
<% end %>
   <tr>
    <td>&nbsp;</td>
    <td>
    <input name="b" type="button" value="全选" onClick="CheckAll(true);"/> &nbsp;
    <input name="c" type="button" value="全清" onClick="CheckAll(false);"/>
    </td>
    <td>
    <%= submit_tag '禁用选中的用户'%>
    <%= submit_tag '激活选中的用户'%>
    </td>
  </tr>
</table>
<% end -%>
<% if !@users.nil? %>
<%= will_paginate(@users)%>
<% end %>